<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="runkit7.resources.html">« 资源类型</a></li>
      <li style="float: right;"><a href="ref.runkit7.html">runkit7 函数 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.runkit7.html">runkit7</a></li>
    <li>预定义常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="runkit7.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <p class="para">
  <dl>
   
    <dt id="constant.runkit7-import-functions">
     <strong><code>RUNKIT7_IMPORT_FUNCTIONS</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

    <span class="simpara">
     <span class="function"><a href="function.runkit7-import.html" class="function">runkit7_import()</a></span> flag indicating
     that normal functions should be imported from the
     specified file.
    </span>
    </dd>

   
   
    <dt id="constant.runkit7-import-class-methods">
     <strong><code>RUNKIT7_IMPORT_CLASS_METHODS</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     <span class="function"><a href="function.runkit7-import.html" class="function">runkit7_import()</a></span> flag indicating
     that class methods should be imported from the
     specified file.
     </span>
    </dd>

   
   
    <dt id="constant.runkit7-import-class-consts">
     <strong><code>RUNKIT7_IMPORT_CLASS_CONSTS</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     <span class="function"><a href="function.runkit7-import.html" class="function">runkit7_import()</a></span> flag indicating
     that class constants should be imported from the
     specified file.
     </span>
    </dd>

   
   
    <dt id="constant.runkit7-import-class-props">
     <strong><code>RUNKIT7_IMPORT_CLASS_PROPS</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     <span class="function"><a href="function.runkit7-import.html" class="function">runkit7_import()</a></span> flag indicating
     that class standard properties should be imported
     from the specified file.
     </span>
    </dd>

   
   
    <dt id="constant.runkit7-import-class-static-props">
     <strong><code>RUNKIT7_IMPORT_CLASS_STATIC_PROPS</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     <span class="function"><a href="function.runkit7-import.html" class="function">runkit7_import()</a></span> flag indicating
     that class static properties should be imported
     from the specified file. Available since Runkit 1.0.1.
     </span>
    </dd>

   
   
    <dt id="constant.runkit7-import-classes">
     <strong><code>RUNKIT7_IMPORT_CLASSES</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     <span class="function"><a href="function.runkit7-import.html" class="function">runkit7_import()</a></span> flag representing
     a bitwise OR of the <strong><code>RUNKIT7_IMPORT_CLASS_*</code></strong>
     constants.
     </span>
    </dd>

   
   
    <dt id="constant.runkit7-import-override">
     <strong><code>RUNKIT7_IMPORT_OVERRIDE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     <span class="function"><a href="function.runkit7-import.html" class="function">runkit7_import()</a></span> flag indicating that
     if any of the imported functions, methods, constants,
     or properties already exist, they should be replaced with
     the new definitions.  If this flag is not set, then any
     imported definitions which already exist will be discarded.
     </span>
    </dd>

   
   
    <dt id="constant.runkit7-acc-return-reference">
     <strong><code>RUNKIT7_ACC_RETURN_REFERENCE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     Include this flag to make the function or method being created or redeclared return a reference.
     </span>
    </dd>

   
   
    <dt id="constant.runkit7-acc-public">
     <strong><code>RUNKIT7_ACC_PUBLIC</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     Flag for <span class="function"><a href="function.runkit7-method-add.html" class="function">runkit7_method_add()</a></span> and <span class="function"><a href="function.runkit7-method-redefine.html" class="function">runkit7_method_redefine()</a></span> to make the method public.
     </span>
    </dd>

   
   
    <dt id="constant.runkit7-acc-protected">
     <strong><code>RUNKIT7_ACC_PROTECTED</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     Flag for <span class="function"><a href="function.runkit7-method-add.html" class="function">runkit7_method_add()</a></span> and <span class="function"><a href="function.runkit7-method-redefine.html" class="function">runkit7_method_redefine()</a></span> to make the method protected.
     </span>
    </dd>

   
   
    <dt id="constant.runkit7-acc-private">
     <strong><code>RUNKIT7_ACC_PRIVATE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     Flag for <span class="function"><a href="function.runkit7-method-add.html" class="function">runkit7_method_add()</a></span> and <span class="function"><a href="function.runkit7-method-redefine.html" class="function">runkit7_method_redefine()</a></span> to make the method private.
     </span>
    </dd>

   
   
    <dt id="constant.runkit7-acc-static">
     <strong><code>RUNKIT7_ACC_STATIC</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     Flag for <span class="function"><a href="function.runkit7-method-add.html" class="function">runkit7_method_add()</a></span> and <span class="function"><a href="function.runkit7-method-redefine.html" class="function">runkit7_method_redefine()</a></span> to make the method static.
     </span>
    </dd>

   
   
    <dt id="constant.runkit7-feature-manipulation">
     <strong><code>RUNKIT7_FEATURE_MANIPULATION</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
      Equal to 1 if runtime manipulation is enabled, and 0 otherwise.
     </span>
    </dd>

   
   
    <dt id="constant.runkit7-feature-superglobals">
     <strong><code>RUNKIT7_FEATURE_SUPERGLOBALS</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
      Equal to 1 if custom superglobals are enabled, and 0 otherwise.
     </span>
    </dd>

   
   
    <dt id="constant.runkit7-feature-sandbox">
     <strong><code>RUNKIT7_FEATURE_SANDBOX</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
      Always 0, it&#039;s impractical to implement the sandbox feature in php 7.
     </span>
    </dd>

   
  </dl>

 </p>
</div>
</div></div></body></html>